package com.robaone.gwt.jsonp.client;

import com.google.gwt.core.client.JavaScriptObject;

public class DSError extends JavaScriptObject {
	protected DSError(){}
	public final native String getErrorMessage(String field,int index)/*-{
		return this[field][index].errorMessage;
	}-*/;
	public final native int getErrorMessageCount(String field)/*-{
		return this[field].length;
	}-*/;
	public final static native DSError eval(JavaScriptObject jso)/*-{
		return eval(jso);
	}-*/;
}
